package cn.danger.com.model.action;

import java.util.List;

import cn.bmob.v3.BmobObject;
import cn.danger.com.model.entity.Schedule;
import cn.danger.com.model.listener.OnCommonListener;

/**
 * Created by 俊 on 2017/1/4.
 */
public interface ScheduleModel {

    String check(Schedule schedule);

    void addScheduleToNetwork(Schedule schedule, OnCommonListener listener);

    void deleteScheduleToNetWork(String objectId, OnCommonListener listener);

    void deleteSchedulesToNetWork(List<BmobObject> schedules, OnCommonListener listener);

    void updateScheduleToNetWork(Schedule schedule, OnCommonListener listener);

}